
<?$this->load->view('admin/tools/admin-header')?>
<?$this->load->view('admin/tools/admin-menu')?>

<div class="wrap">
	<a href=""><div id="icon-index" class="icon32"><br /></div></a><br>
<h3><a>Manage -> Konten Statis</a></h3>
<?if((!(empty($mode))) && (!((is_numeric($mode))))){echo"<div id='message' class='updated fade'><p>$pesan</p></div>";}?>
<div id="dashboard-widgets-wrap">

<br class="clear" />
<table width="80%">
	<thead>
	<tr style="background:#9b9b9b;color:yellow;font-family:arial;height:25px;">
		<th scope="col" class="th-view check-column">No</th>
		<th scope="col" class="th-view" width="70%">Konten</th>
		<th scope="col" class="th-view" width="30%">Aksi</th>
	</tr>
	</thead>
	<tbody>
	<?
	$i=1;
	$uri = $this->uri->segment(3);
	if($uri==null){$uri=0;};
	foreach ($query as $row)
		{
			$id			= $row->id;
			$tanggal	= $row->tanggal;
			$judul	    = $row->judul;
			$status 	= $row->status;
			
			if($status=="publish"){
				$image = "world.png";
				$title = "Publish";
			}else{
				$image = "cross.png";
				$title = "Unpublish";
			}
		?>
	<tr style="background:#FFFFFF"valign="center">

		<th scope="row" class="td-view check-column"><?=($i+$uri)?></th>	
		<td width="70%" class="td-view" style="margin-left:10px;"><?=$judul?></td>	
		<td width="30%" class="td-view" align="center"><a href="<?=site_url('administrator/view_kontenstatis/'.$id)?>" title="View Artikel"><img src="<?=base_url()?>css/icon/view.png"></a>&nbsp;|&nbsp;<a href="<?=site_url('administrator/edit_kontenstatis/'.$id)?>" title="Edit Artikel"><img src="<?=base_url()?>css/icon/edit.png"></a></td>
	</tr>
	<?$i++;}?>
	</tbody>
</table>
<table width="250" align="center" border="1">
		<tr style="background:">
			<td width="250" valign="middle" align="center">
			<font face=verdana size=2 color=#FF0000>
			<div style="float:left">
				<center>Banyak Data : <b><?=$jumlah?></b></center>
				<center><a><?echo $this->pagination->create_links();?></a></center>
			</div></font>
			</td>
		</tr>
		</table>
<br><br>
	
</div>
</div><!-- wrap -->


<div class="clear"></div></div><!-- wpbody-content -->
<div class="clear"></div></div><!-- wpbody -->
<div class="clear"></div></div><!-- wpcontent -->
</div><!-- wpwrap -->

<!--admin-footer-->
<?$this->load->view('admin/tools/admin-footer');?>
<!--admin-footer-->
